package com.yfp.operation.service.impl;

import com.yfp.operation.domain.WxGroupMember;
import com.yfp.operation.mapper.WxGroupMemberMapper;
import com.yfp.operation.service.WxGroupMemberService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 微信群成员
 *
 * @CreateDate: 2024/7/6 15:35
 * @UpdateUser:
 * @UpdateDate: 2024/7/6 15:35
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Service
@Slf4j
public class WxGroupMemberServiceImpl implements WxGroupMemberService {
    @Resource
    private WxGroupMemberMapper wxGroupMemberMapper;

    @Override
    public WxGroupMember getByIdAndGroupChatId(String id, String groupChatId) {
        return wxGroupMemberMapper.getByIdAndGroupChatId(id, groupChatId);
    }

    @Override
    public List<WxGroupMember> findList(WxGroupMember wxGroupMember) {
        return wxGroupMemberMapper.findList(wxGroupMember);
    }

    @Override
    public void add(WxGroupMember wxGroupMember) {
        wxGroupMemberMapper.add(wxGroupMember);
    }

    @Override
    public void edit(WxGroupMember wxGroupMember) {
        wxGroupMemberMapper.edit(wxGroupMember);
    }

    @Override
    public void delByGroupChatId(String groupChatId) {
        wxGroupMemberMapper.delByGroupChatId(groupChatId);
    }

    @Override
    public void updateStatus(String groupChatId) {
        wxGroupMemberMapper.updateStatus(groupChatId);
    }
}